from django.db import models
from glowdrop import settings
from django.contrib.auth.models import User

class Message(models.Model):

    content = models.CharField(max_length=settings.MAX_MESSAGE_LEN)
    src = models.ForeignKey(User, related_name='src')
    dest = models.ForeignKey(User, related_name='dest')
    pub_date = models.DateTimeField(auto_now=True)
    #status = models.CharFields(max_length=1, 
            #choices=(('u', 'unread'), ('r', 'read')))

